package edu.br.domain;

import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;
import edu.br.enuns.Tag;

public class Training implements Parcelable {

	private List<HypertrophyExercise> litsHyper;

	private List<CardioExercise> listCardio;

	private Tag tag;

	public Training(Tag tag) {
		this.tag = tag;
	}

	public Training(Parcel dest) {

	}

	public List<HypertrophyExercise> getListHyper() {
		return this.litsHyper;
	}

	public void setListHyper(List<HypertrophyExercise> litsHyper) {
		this.litsHyper = litsHyper;
	}

	public void addHyperExercise(HypertrophyExercise exercise) {
		this.litsHyper.add(exercise);
	}

	public void removeHyperExercise(HypertrophyExercise exercise) {
		this.litsHyper.remove(exercise);
	}

	public List<CardioExercise> getListCardio() {
		return this.listCardio;
	}

	public void setListCardio(List<CardioExercise> listCardio) {
		this.listCardio = listCardio;
	}

	public void addCardioExercise(CardioExercise exercise) {
		this.listCardio.add(exercise);
	}

	public void removeCardioExercise(CardioExercise exercise) {
		this.listCardio.remove(exercise);
	}

	public Tag getTag() {
		return this.tag;
	}

	@Override
	public String toString() {
		return "Training " + this.getTag();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(this.listCardio);
	}
}
